﻿using Abp.Domain.Entities.Auditing;
using SingleUserMall.Authorization.Users;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Crowd
{
    /// <summary>
    /// 众筹参与人信息
    /// </summary>
    public class CrowdParticipants : FullAuditedEntity<long>
    {
        /// <summary>
        /// 参与用户
        /// </summary>
        public long UserId { get; set; }
        [ForeignKey("UserId")]
        public virtual User User { get; set; }
        /// <summary>
        /// 众筹项目Id
        /// </summary>
        public long CrowdFundingsId { get; set; }
        [ForeignKey("CrowdFundingsId")]
        public virtual CrowdFundings CrowdFundings { get; set; }
        /// <summary>
        /// 实际费用
        /// </summary>
        public decimal ActualAmount { get; set; }
        /// <summary>
        /// 订单ID
        /// </summary>
        public string OrderNo { get; set; }
        /// <summary>
        /// 支付状态（true：支付成功；false：未支付）
        /// </summary>
        public Boolean Paystate { get; set; }
        /// <summary>
        /// 支付时间
        /// </summary>
        public DateTime? PayDateTime { get; set; }
        /// <summary>
        /// 参与人角色（1：献爱心；2：合伙人）
        /// </summary>
        public int ParticipantsRole { get; set; }
    }
}
